const schedule = require('node-schedule');
const { createAsyncTask } = require('../../common/utils/threadUtil');
const { appSearch: appSearchInit } = require('../../biz/appSearchService/appSearch')

exports.scheduleAppScan = function () {
    createAsyncTask(appSearchInit())
    schedule.scheduleJob('*/30 * * * *', function () {
        appSearchInit()
    });
}